package cn.com.code.design.event.listener;

import cn.com.code.design.LotteryResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author zhengpei
 * @date 2021/11/2
 */
public class MQEventListener implements EventListener {

  private Logger logger = LoggerFactory.getLogger(MQEventListener.class);

  @Override
  public void doEvent(LotteryResult result) {
    logger.info("给用户{}摇号结果{}",result.getuId(),result.getMsg());
  }

}
